﻿using Mozi.HttpEmbedded.Generic;

namespace Mozi.Live.SDP
{
    /// <summary>
    /// 会话类型
    /// </summary>
    public class SDPAttributeConference : AbsClassEnum
    {
        /// <summary>
        /// broadcast
        /// </summary>
        public SDPAttributeConference Broadcast = new SDPAttributeConference("broadcast");
        /// <summary>
        /// meeting
        /// </summary>
        public SDPAttributeConference Meeting = new SDPAttributeConference("meeting");
        /// <summary>
        /// moderated
        /// </summary>
        public SDPAttributeConference Moderated = new SDPAttributeConference("moderated");
        /// <summary>
        /// test
        /// </summary>
        public SDPAttributeConference Test = new SDPAttributeConference("test");
        /// <summary>
        /// h332
        /// </summary>
        public SDPAttributeConference H332 = new SDPAttributeConference("H332");

        private string _name;

        /// <summary>
        /// 会话类型名
        /// </summary>
        public string Name { get => _name; set => _name = value; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        public SDPAttributeConference(string name)
        {
            _name = name;
        }
        protected override string Tag => _name;
    }

}
